﻿using System;
using System.Collections.Generic;
using System.Text;

namespace X3DLib
{
    public class field :X3dInterfaceObject 
    {
        private string Name;

        public string name
        {
            get { return Name; }
            set { Name = value; }
        }
        private string Type;

        public string type
        {
            get { return Type; }
            set { Type = value; }
        }
        private string AccessType;

        public string accessType
        {
            get { return AccessType; }
            set { AccessType = value; }
        }
        /// <summary>
        /// 定义接受类型为"inputOuput"的field节点
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="type">数据类型</param>
        public field(string name, string type)
        {
            this.name = name;
            this.type = type;
            this.accessType = "inputOutput";
        }
        /// <summary>
        /// 定义field节点
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="type">数据类型</param>
        /// <param name="accessType">传递方式</param>
        public field(string name,string type,string accessType)
        {
            this.name = name;
            this.type = type;
            this.accessType = accessType;
        }
    }
}
